extends "../mingshi-2/mingshi-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("每{cd}秒随机恢复3名非满血友军[雷击*2]的生命值", "后勤维修", "hqwx", 6)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "hqwx":
		hqwx()
var p3 = 3
func hqwx():
	var chas = getAllChas(2)
	chas.shuffle()
	var dmg = att.mgiAtk * 2
	for i in range(p3):
		if i >= chas.size() : break
		if chas[i].att.hp < chas[i].att.maxHp:
			healCha(chas[i], dmg)
			if upgraded == 2:
				buff.addHuoLi(chas[i], self, 2)